{layout name="layout/default" /}
<div class="panel panel-default panel-intro">
  <div class="panel-heading">
    <div class="panel-lead"><em>{$nav_title.title}</em>{$nav_title.remark}</div>
  </div>
  <div class="panel-body" id="contents">
    <div id="myTabContent" class="tab-content">
      <div class="tab-pane fade active in">
        <div class="widget-body no-padding">
          <div class="bootstrap-table">
            <div class="fixed-table-toolbar">
              <div class="columns-right pull-right" style="margin-top:10px;">
                <form class="form-inline form-commonsearch nice-validator n-default" method="post" action="">
                  <input class="form-control" placeholder="搜索" type="text" name="wd">
                  <button type="submit" class="btn btn-default ajax-posturl"  title="普通搜索"  target-form="form-commonsearch"><i class="glyphicon glyphicon-search"></i></button>
                </form>
              </div>
               <div class="pull-right search">
                <select name="status" class="form-control" type="get-select" style="margin:0 0 0 10px;">
                  <option value="{:admin_url('admin/playlog/index')}">分类检索</option>
                  {volist name="listvod" id="vo"}<option value="{:admin_url('admin/playlog/index',array('vid'=>$vid,'uid'=>$vo.list_id,'cid'=>$cid,'type'=>'log_addtime','order'=>'desc'))}" {eq name="vo.list_id" value="$cid"}selected{/eq}>{$vo.list_name}</option>
{if isset($vo['son'])}{volist name="vo['son']" id="splist"}<option value="{:admin_url('admin/playlog/index',array('vid'=>$vid,'uid'=>$vo.list_id,'cid'=>$splist.list_id,'type'=>'log_addtime','order'=>'desc'))}" {eq name="splist.list_id" value="$cid"}selected{/eq}>├ {$splist.list_name}</option>{/volist}{/if}
{/volist}
                </select>
              </div>             
              <div class="bs-bars pull-left">
                <div id="toolbar" class="toolbar"><a href="{:admin_url('admin/playlog/index')}" class="btn btn-primary ajax-url"><i class="fa fa-refresh"></i> </a>  <a  url="{:admin_url('admin/playlog/del')}" target-form="ids" class="confirm btn btn-danger btn-del btn-disabled ajax-post disabled"><i class="fa fa-trash"></i> 删除</a> <span id="selectedChks" style="display:none">已选择<strong></strong>记录</span> </div>
              </div>
            </div>
          </div>
          <div class="fixed-table-container" style="padding-bottom: 0px;">
            <div class="fixed-table-body">
              <form class="ids">
                <table id="table" class="table table-striped table-bordered table-hover" style="margin-top: 0px;" width="100%">
                  <thead>
                    <tr style="height:45px;">
                      <th class="bs-checkbox "><input name="btSelectAll" type="checkbox"></th>
 <th style="text-align:center;vertical-align: middle;">{eq name="orders" value="log_id desc"}<a href="{:admin_url('admin/playlog/index',array('vid'=>$vid,'uid'=>$uid,'cid'=>$cid,'type'=>'log_id','order'=>'asc'))}" class="btn-link sort ajax-url">编号 <i class="fa fa-angle-up"></i></a>{else/}<a href="{:admin_url('admin/playlog/index',array('vid'=>$vid,'uid'=>$uid,'cid'=>$cid,'type'=>'log_id','order'=>'desc'))}" class="btn-link sort ajax-url">编号 <i class="fa fa-angle-down"></i></a>{/eq}</th>
              <th style="text-align:center;vertical-align: middle;">会员用户</th>
              <th style="text-align:center;vertical-align: middle;">视频名称</th>
              <th style="text-align:center;vertical-align: middle;">视频分类</th>
              <th style="text-align:center;vertical-align: middle;">播放标题</th>
              <th style="text-align:center;vertical-align: middle;">播放组名</th>
              <th style="text-align:center;vertical-align: middle;">播放集数</th>
              <th style="text-align:center;vertical-align: middle;">{eq name="orders" value="log_addtime desc"}<a href="{:admin_url('admin/playlog/index',array('vid'=>$vid,'uid'=>$uid,'cid'=>$cid,'type'=>'log_addtime','order'=>'asc'))}" class="btn-link sort ajax-url">评论时间 <i class="fa fa-angle-up"></i></a>{else/}<a href="{:admin_url('admin/playlog/index',array('vid'=>$vid,'uid'=>$uid,'cid'=>$cid,'type'=>'log_addtime','order'=>'desc'))}" class="btn-link sort ajax-url">评论时间 <i class="fa fa-angle-down"></i></a>{/eq}</th>
              <th style="text-align:center;vertical-align: middle;">相关操作</th>
                   </tr>
                  </thead>
            <tbody>
                  {notempty name="list"}
                  {volist name="list" id="vo"}
                <tr>
                <td class="bs-checkbox"><input data-index="{$vo['cm_id']}" name="id[]" type="checkbox"  value="{$vo['cm_id']}"></td>
                <td style="text-align:center;vertical-align: middle;">{$vo['log_id']}</td>
                <td style="text-align:center;vertical-align: middle;"><a href="{:admin_url('admin/playlog/index',array('uid'=>$vo['userid'],'type'=>$type,'order'=>$order))}" class="btn-link">{notempty name='vo.nickname'}{$vo.nickname}{else /}{$vo.username}{/notempty}</a></td>
                <td style="text-align:center;vertical-align: middle;"><a href="{:admin_url('admin/playlog/index',array('vid'=>$vo['vod_id'],'type'=>$type,'order'=>$order))}" class="btn-link">{$vo.vod_name}</a></td>
                <td style="text-align:center;vertical-align: middle;">{:getlistname($vo['vod_cid'])}</td>
                <td style="text-align:center;vertical-align: middle;"><a href="{:zanpian_play_url(array('id'=>$vo['vod_id'],'pinyin'=>$vo['vod_letters'],'cid'=>$vo['vod_cid'],'dir'=>getlistname($vo['vod_cid'],'list_dir'),'sid'=>$vo['log_sid'],'pid'=>$vo['log_pid']))}" target="_blank" class="btn-link">{$vo.log_urlname}</a></td>
                <td style="text-align:center;vertical-align: middle;">{$vo.log_sid}</td>
                <td style="text-align:center;vertical-align: middle;">{$vo.log_pid}</td>
                <td style="text-align:center;vertical-align: middle;">{$vo.log_addtime|date='Y-m-d H:i:s',###}</td>
                <td style="text-align:center;vertical-align: middle;">
                <a url="{:admin_url('admin/playlog/del' , array('id' => $vo['log_id']))}" class="confirm btn btn-danger btn-xs confirm ajax-get"><i class="fa fa-trash-o"></i> 删除</a>
               </td>
    </tr>
 {/volist}   
                  {else/}
                  <tr>
                    <td style="text-align:center;vertical-align: middle;" colspan="10" >抱歉，没有找到相关内容！</td>
                  </tr>
                  {/notempty}
                  </tbody>
 </table>
              </form>
            </div>
            {gt name="list->lastPage()" value="1"}
            <div class="fixed-table-pagination" style="overflow:hidden">
              <div class="pull-left pagination-detail"><span class="pagination-info">共{$list->total()}条数据 {$list->currentPage()}/{$list->lastPage()} </span><span class="page-list">每页显示 {$list->listRows()} 条数据</span></div>
              <div class="pull-right pagination">
                <ul class="pagination">
                  {$page}
                </ul>
              </div>
            </div>
            {/gt}
          </div>
        </div>
        <div class="clearfix"></div>
      </div>
    </div>
  </div>
</div>
</div>
